package logic

import (
	"news/dao/mysql"
	"news/models"
)

func GetPrevAndNextPost(id int64) (prevPost *models.PostOrder,
	nextPost *models.PostOrder, err error) {
	prevPost, err = mysql.GetPrevPostById(id)
	if err != nil {
	}
	nextPost, err = mysql.GetNextPostById(id)
	if err != nil {
	}
	return
}
